import axios from 'axios'
import Vue from 'vue'

let baseUrl = 'http://127.0.0.1:8000'

let Http = axios.create({
  baseURL: baseUrl,
  headers: {
    'Content-Type': 'multipart/form-data'
  }
});
Vue.prototype.$axios = Http;
Vue.prototype.$BASEURL = baseUrl;

// Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

export default Http
